package space.xxhui.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import space.xxhui.POJO.User;

/**
 * Created by hui on 2017/7/18.
 */
@Controller
public class ConverterController {

    @RequestMapping(value = "/convert" ,produces = "application/x-wisely")
    public @ResponseBody User convert(@RequestBody User user){
        System.out.println(user.toString());
        return user;
    }


}
